package com.feeyin.radar.crm.model;

import java.util.Comparator;
import java.util.Date;

public class SaleRecordComparator_demo
  implements Comparator
{
  public int compare(Object o1, Object o2)
  {
    Customer customer1 = (Customer)o1;
    Customer customer2 = (Customer)o2;

    if (customer1.getLastLink().compareTo(customer2.getLastLink()) > 0)
      return 1;
    if (customer1.getLastLink().compareTo(customer2.getLastLink()) == 0) {
      return 0;
    }
    return -1;
  }
}